home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl040
/
aswpac14.lzh
/
ASWPACK.DOC
< prev
next >
Wrap
Text File
|
1993-06-30
|
15KB
|
364 lines
AswPack 1.40 - Questionnaire Answer File Pack Utility
Copyright (c) 1991-93 Serious Cybernetics
by C. Scott Davis and Danny Sosebee
-------------------------------------------------------------------------------
The following files should be contained in ASWPAC14.ZIP :
ASWPACK.EXE AswPack Programme
ASWPACK.INI AswPack Init/Config File
RESOURCE.APF AswPack Font Resource File (optional)
RESOURCE.APV AswPack Voice Resource File (optional)
ASWPACK.DOC AswPack documentation (this file)
REGISTER.DOC Registration information for AswPack
REGISTER.FRM Registration form for AswPack
APREG.EXE Programme to Register AswPack
APTEST.EXE Programme to test ASWPACK.INI and Resource file(s)
-------------------------------------------------------------------------------
* Introduction
AswPack is one of those obvious little utilities for BBS sysops that everyone
seems to need but no one knows where do find it. Since we couldn't find it
either, we decided to write one. The end result is AswPack.
* Just what is AswPack?
AswPack is a utility for sysops of QuickBBS(tm), ProBoard(tm) and compatible
BBS software. It was designed to clean up duplicates in the .ASW Questionnaire
Answer Files produced when you execute a Q-A file from the BBS that saves it's
information to a file. These answer files are pure text, and may contain a
wide variety of information. One problem with this method of using a text file
to store the user responses is the inability of the BBS program to delete old
user information. If you have your BBS set up to purge inactive users after a
set period, or if you allow users to re-answer a questionnaire (to update their
answers), then you will soon find there are duplicates in the answer file, as
well as records for users who no longer exist. AswPack was created to repair
this problem IF IT IS USED CORRECTLY.
* What do I need to run AswPack?
Many sysops have a NEWUSER.Q-A file containing a new user questionnaire. If the
Q-A file creates an answer file, the filename will be NEWUSER.ASW (named by the
BBS itself). Some sysops even have multiple questionnaires generating several
different answer files. AswPack can be used on any or all of these answer
files.
Since the structure of the answer file is dependant on the way the sysop
designed the Q-A file which produces it, there is only one sure way of
detecting where the start of a user's answers are. The line of text produced
by the questionnaire "POSTINFO" command will always contain specific
information based on the BBS software used. AswPack makes use of this line as
a "header" record, as well as using it's date and time information to eliminate
duplicates. Therefore, for AswPack to properly process your .ASW files, you
must have your questionaire use the POSTINFO command as the first command that
writes to the answer file. AswPack will assume that all lines between two
header's belong to the first header, and will write the updated .ASW file
accordingly.
AswPack is also capable of processing "mixed" files (those containing both
QuickBBS[tm] and ProBoard[tm] formats).
* How do I use AswPack?
Once you have determined that AswPack can process your answer files, the actual
installation and operation is quite simple. Although you may run AswPack
manually from the DOS command prompt, AswPack is ideally suited for batch file
operation. It is suggested that your AswPack instructions be placed in your
nightly maintanence update batch file, usually after the instructions to purge
old inactive users from your user file.
Note: Unregistered versions of AswPack will display a message and wait for
a key press before processing.
The command format for AswPack is as follows :
ASWPACK [-[!]options] [d:][path]filename[.ext]
Valid options are :
! reverses options
-n No-windows mode
-m Mono mode
-d Dim mode
-p Pop-up mode
-g "Genius"-66 mode
-c# Character set (0 to 2)
-q Quiet mode
-i Internal speaker mode
-k Kill-backups mode
-u User-search mode
-f# output Format (0 to 2)
-l# Log level (0 to 3)
-r Restart log file
Options specified on the command line will override their counterparts in the
ASWPACK.INI file (see ASWPACK.INI for example settings).
AswPack's various options may be used in any combination or order. Although the
format specifies a "-" to preceed the options, a "/" can also be used. Also,
options may be specified at any point on the command line, as long as each
group of options are preceeded by a "-" or a "/". If "!" appears within a
group of options, all remaining options in that group will be turned "off"
instead of "on". Each option is detailed next.
-n No-windows mode :
(ASWPACK.INI setting "WINDOW=NONE")
If you want a straight text display (no windows), then you should specify
the "N" parameter.
-m Mono mode :
(ASWPACK.INI setting "DISPLAY=MONO")
Normally AswPack will detect your video state and automatically select
Monochrome or Colour modes. However, this option may be used to override the
automatic detection in special cases (such as a colour card with a "black and
white" monitor). This option has no effect if "N" is specified.
-d Dim mode :
(ASWPACK.INI setting "DISPLAY=DIM")
The Dim mode option is useful for those who prefer a muted (dark) background
instead of a full colour display. This option has no effect if "N" is
specified.
-p Pop-up mode :
(ASWPACK.INI setting "WINDOW=POPUP")
AswPack normally defaults to exploding window mode. However, some people find
this irritating, and it can be very slow on slower PC's. Therefore, you may
use the "P" option to force the faster "popup" window mode. This option has no
effect if "N" is specified.
-g "Genius"-66 mode :
(ASWPACK.INI setting "GENIUS66=YES")
AswPack can normally detect your video hardware and adjust for whatever video
mode you are currently in. However, some special "Page Displays" (for
instance, the "Genius" 66 line display) cannot be detected by AswPack. If you
have one of these special displays, you may need to specify the "G" parameter
here. This option has no effect if "N" is specified.
-c Character font (0 to 2) :
(ASWPACK.INI settings "FONT=NONE", "FONT=SYSTEM", "FONT=DEFINED")
If you have an EGA/VGA display adapter, AswPack will default to 2 (defined
font). If you set this to 1, AswPack will use the current system font. If you
set this to 0 (or no EGA/VGA is detected or the ASWPACK.APF file is missing or
corrupt), AswPack will attempt no font redefinitions. This option has no
effect if "N" is specified.
-q Quiet mode :
(ASWPACK.INI setting "SOUND=NONE")
AswPack normally defaults to sound effects mode, but some may find the various
sounds irritating, or you may wish to run AswPack automatically at night
without it waking you up. Specifying Quiet mode will nullify all sound
effects.
-i Internal speaker mode :
(ASWPACK.INI setting "SOUND=INTERNAL")
By default, AswPack will attempt to send sound effects through a
SoundBlaster[tm] (or compatible) sound card. If no such card is present or the
RESOURCE.APV file is missing or corrupt, AswPack will use the PC's internal
speaker. Specifying Internal speaker mode will force AswPack to use the
internal speaker even if a sound card is available.
-k Kill-backups mode :
(ASWPACK.INI setting "BACKUPS=NO")
AswPack normally defaults to backup-save mode, creating a backup of your answer
file with the same filename but with the extension .BAK. However, you may
specify the "K" parameter to force AswPack to kill the backup file. USE WITH
CAUTION! TEST AswPack ON YOUR FILES WITHOUT THIS FIRST!
-u User-search mode :
(ASWPACK.INI setting "USERS=@[d:][\path\]userfile")
AswPack normally defaults to ignore-user-file mode, processing only the answer
file. However, you can optionally specify the "U" parameter to cause AswPack
to read the USERS.BBS file also. When you do this, AswPack will delete answers
from any person who is NOT currently in the answer file, along with it's normal
dupe-elimination process. This also takes an extra "pass" through the files.
-f# output Format (0 to 2) :
(ASWPACK.INI settings "FORMAT=SAME", "FORMAT=QUICKBBS", "FORMAT=PROBOARD")
AswPack normally defaults to 0, meaning that the answer file is written in the
same format that it was read. However, you may wish to force AswPack to write
in QuickBBS(tm) or ProBoard(tm) format. If you set this to 1, AswPack will
write the answer file using QuickBBS(tm) format. If you set this to 2, AswPack
will write the answer file using ProBoard(tm) format.
-l# Log level (0 to 3) :
(ASWPACK.INI settings "LOG=NONE", "LOG=SUMMARY", "LOG=DETAIL")
AswPack normally defaults to 0, meaning No Log. However, you may wish AswPack
to produce a log of it's activity. If you set this to 1, 2, or 3, AswPack will
create ASWPACK.LOG containing a log of it's activity. The higher the number,
the more information will be contained in the log. In version 1.40, log level
2 and 3 both produce the maximum detailed log. Log level 2 is included for use
by future versions of AswPack.
-r Restart log file :
(ASWPACK.INI setting "RESTART=YES")
AswPack normally defaults to append mode on it's log files. However, this may
make your log files grow quite large unless you periodically delete them. If
you specify the "R" option here, AswPack will delete old logs before it creates
a new one. If logging is disabled with the "L0" option, these settings have no
effect.
[d:][\path\] (default=current directory) :
The drive and path parameters may be optionally used to specify the location of
all of the data files you wish AswPack to use. If you specify either of these
parameters, AswPack will look in the specified drive/directory for all of it's
input files (text file and user file), and will write it's output files to the
specified drive/directory. If you do not specify either of these, AswPack will
default to the current drive/directory.
filename (required)
This is the only command line parameter that is required. It should be the
name of the text file you wish AswPack to process. The default extension is
.ASW, so it need not be specified. Note that this is NOT the user file, which
is called USERS.BBS, but the name of the answer file (i.e. NEWUSER).
[.ext] (default=.ASW)
This is the optional filename extension. Normally AswPack defaults to .ASW
because that's what the QuickBBS software names the file. However, for those
sysops who rename their files, we have allowed full flexability in selecting
the input file.
An example of how to use AswPack would be:
ASWPACK -DKL1 NEWUSER
This would cause AswPack to use Dim colour mode, Kill backups, use Log Level 1
(minimum information). It would then process the file NEWUSER.ASW (in the
current directory).
"ASWPACK *" will display the current version and release date for AswPack.
* AswPack Runtime Display
When AswPack executes, it display's a three level window. The background
window displays the program and copyright information. The next window shows a
scrolling display of detailed information on the file(s) being processed. The
center status window shows what AswPack is currently doing, which pass it is
in, and a status graph of percentage complete. Once AswPack completes, it
restores the screen to it's original state and displays the execution time and
number of records deleted. Note that, if you have specified the "U" option,
AswPack will first read USERS.BBS, causing it to make one extra pass. If
AswPack encounters any errors, it will abort with a non-zero errorlevel,
display an error message and append an "error" entry to the ASWPACK.ERR error
file. Note also that if you have specified the "N" option, no windows will
be displayed.
* More About RESOURCE.AP? files
AswPack can optionally use 2 resource files (RESOURCE.APF and RESOURCE.APV).
The APF file contains font redefinition information for EGA/VGA display and the
APV file contains digital voice samples for SoundBlaster(tm) and compatible
audio cards. If you don't wish to use either (or both) of these features,
you may safely delete the resource file(s).
* More About Sound
AswPack will read the SOUND environment variable to determine where the
SoundBlaster(tm) files are located. It expects to find the CT-VOICE.DRV file
in the DRV\ directory within the directory specified by SOUND.
For example, if your SoundBlaster(tm) files are located in a directory called
C:\SB, then you should have
SOUND=C:\SB
set and C:\SB\DRV should contain the SoundBlaster(tm) driver files (including
CT-VOICE.DRV).
* AswPack Support
The latest version of AswPack can always be downloaded from our primary support
BBS below. FidoNet file requests for magic filename "ASWPACK" will also obtain
the latest version. Also request "FILES" for a nightly updated master file
listing, including several other utilities from Serious Cybernetics.
Primary Support BBS :
P h o e n i x S t a r F i g h t e r B B S
The home of "Serious Cybernetics" - FidoNet 1:3616/20
(404) 869-3410 - Lula, Georgia, USA - 24 Hour Service
Supporting 300/1200/2400/HST/v32/v32b/v42/v42b via USR HST/DS Modem
Sysops: Danny Sosebee and Scott Davis
All Users Welcome! Immediate Access!
AswPack is shareware. You may copy and distribute ASWPAC14.ZIP freely. All I
ask is that you include all of the original files, unmodified.
If you like AswPack and use it, a registration fee of $10 is expected (see
REGISTER.DOC for more information). This will also help to encourage future
enhancements to this utility and the writing of others like it. Comments,
questions, and suggestions are always welcome. You may contact us via the BBS
listed above or at the following address:
Serious Cybernetics
6804 Belton Place
Lula, GA 30554-2622 USA
* Credits
AswPack was written in Borland Pascal (tm) 7.0, using Object Professional (tm)
1.11 from Turbo Power; RkPlus (tm) 3.1, CmdParse 1.02 and ReSource 1.0 from
Serious Cybernetics.
Special thanks to Danny Sosebee and Ed Ivey for beta testing and suggestions.
AswPack, RkPlus (c) 1991-93 Serious Cybernetics
CmdParse (c) 1992-93 Serious Cybernetics
ReSource (c) 1993 Serious Cybernetics
Borland Pascal (c) 1983-92 Borland International
Object Professional (c) 1989 TurboPower Software
SoundBlaster (c) Creative Labs
Stony Brook Pascal+ (c) 1987-93 Stony Brook Software